package com.算法.操作系统;

/**
 * @author zh
 * @date 2024-01-03 11:22
 */
// 进程控制器
public class PCB {
    String name;
    int priority;
    int arrivalTime;
    int remainingTime;
    int usedCPUTime;
    int IOTime;
    int revolveTime;
    public PCB(String name, int priority, int arrivalTime, int remainingTime, int usedCPUTime, int IOTime, int revolveTime) {
        this.name = name;
        this.priority = priority;
        this.arrivalTime = arrivalTime;
        this.remainingTime = remainingTime;
        this.usedCPUTime = usedCPUTime;
        this.IOTime = IOTime;
        this.revolveTime = revolveTime;
    }
    public PCB() {

    }
    public void setName(String name) {
        this.name = name;
    }
    public void setPriority(int priority) {
        this.priority = priority;
    }
    public void setArrivalTime(int arrivalTime) {
        this.arrivalTime = arrivalTime;
    }
    public void setRemainingTime(int remainingTime) {
        this.remainingTime = remainingTime;
    }
    public void setUsedCPUTime(int usedCPUTime) {
        this.usedCPUTime = usedCPUTime;
    }
    public void setIOTime(int IOTime) {
        this.IOTime = IOTime;
    }
    public void setRevolveTime(int revolveTime) {
        this.revolveTime = revolveTime;
    }
    public String getName() {
        return name;
    }
    public int getPriority() {
        return priority;
    }
    public int getArrivalTime() {
        return arrivalTime;
    }
    public int getRemainingTime() {
        return remainingTime;
    }
    public int getUsedCPUTime() {
        return usedCPUTime;
    }
    public int getIOTime() {
        return IOTime;
    }
    public int getRevolveTime() {
        return revolveTime;
    }
}
